﻿using System.ComponentModel;
using SymbolicLinkManageCore;

namespace SymbolicLinkManageUI.Lib
{
    public record class SelectListData(RecordData recordData) : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler? PropertyChanged;
        public void SendNotify(string name) => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));

        private bool m_IsSelect = false;
        public bool IsSelect { get => m_IsSelect; set { if (m_IsSelect == value) return; m_IsSelect = value; SendNotify(nameof(IsSelect)); } }
    }
}
